from application.flask import app
from flask import request, Response
from application.utils.files.avatarUtils import getRandomAvatar


@app.route("/random-avatar")
def randomAvatar():
    token = request.args.get("token")
    avatar = getRandomAvatar(token)
    return Response(avatar)
